<style>
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fui-navbar .buybtn  {padding-left:0.3rem;background:#fff}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:#4491F1;color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:#ff9999;}
.fee-tagup-nav {background:#4491F1;}
.fee-disabled-nav {background:#bbb;color:#fff;}	
.label-default {
    background-color: #f5f7fb;
	color: #999;
}
</style>
<div class="fui-page">
	<div class="fui-content">
		<div style="background: {{main.syscolor||'#05c175'}};padding:1rem 0.5rem;margin-top:0;padding-bottom:1.6rem;"></div>
		<div style="padding:0.5rem;margin-top:-2.2rem">
			<div class="fui-cell-group radius">
				<div class="fui-cell" style="padding:0.5rem;align-items:stretch">
						<div class="fui-cell-text" style="line-height:1.8">
							<div class="bold">{{pagedata.item.title}}</div>
							<div class="bold syscolor" style="font-size:0.9rem">{{pagedata.item.pay}}</div>
							<div>
								<span class="label label-default">{{pagedata.item.zhaonum>0?'需要'+pagedata.item.zhaonum+'人':'不限人数'}}</span>
								<span class="label label-default">{{pagedata.item.sextitle}}</span>
								<span class="label label-default">{{pagedata.item.educationidtitle}}</span>
								<span ng-if="!pagedata.item.ageinfo" class="label label-default">{{pagedata.item.age>0?pagedata.item.age+'岁内':'不限年龄'}}</span>
								<span ng-if="pagedata.item.ageinfo" class="label label-default">{{pagedata.item.ageinfo}}</span>
								<span class="label label-default">{{pagedata.item.baotypetitle}}</span>
							</div>
						</div>
				</div>
			</div>
			
			<div class="fui-cell-group radius">
				<div class="fui-cell" style="padding:0.5rem;align-items:stretch">
						<div class="fui-cell-text" style="line-height:1.8">
							<div class="bold">任务描述</div>
							<div class="gray" style="font-size:0.65rem" ng-bind-html="trust(pagedata.item.remark)"></div>
						</div>
				</div>
			</div>
			<div class="fui-cell-group radius">
				<div class="fui-cell" style="padding:0.5rem;align-items:stretch">
						<div class="fui-cell-text" style="line-height:1.8">
							<div class="bold">福利待遇</div>
							<div class="gray" style="font-size:0.65rem" ng-bind-html="trust(pagedata.item.fuli)"></div>
						</div>
				</div>
			</div>
			<div class="fui-cell-group radius">
				<div class="fui-cell" style="padding:0.5rem;align-items:stretch">
						<div class="fui-cell-text" style="line-height:1.8">
							<div class="bold"><i class="icon icon-yuyue"></i> 工作地点</div>
							<div class="gray" style="font-size:0.65rem">
								<span>{{pagedata.item.district}} {{pagedata.item.address}}<a href="javascript:" ng-click="pagedata.openLocation(pagedata.item);" class="syscolor" style="font-size:0.65rem;line-height: 1.5;"><i class="icon icon-lvyoutehui"></i>导航</a></span>
							</div>
						</div>
				</div>
			</div>
			<div class="fui-cell-group radius">
				<div class="fui-cell" href="javascript:" ng-click="access_json('jy_aihire/merch//id='+pagedata.merch.id)" style="padding:0.5rem;align-items:stretch">
					<div class="fui-cell-label" style="width:auto;padding-top:0.3rem;padding-right:0.3rem">
						<img style="width:2.5rem" ng-src="{{tomedia(pagedata.merch.logo) || '../core/resource/images/nopic.jpg'}}" />
					</div>
					<div class="fui-cell-text" style="line-height:1.8">
						<div>{{pagedata.merch.title}}</div>
						<div class="gray" style="font-size:0.65rem" ng-bind-html="trust(pagedata.merch.desc)"></div>
						<div style="padding:0.3rem 0;font-size:0.6rem">
							<i class="icon icon-rfq1 syscolor"></i>
							<span class="gray">单量 <span class="bold syscolor">{{pagedata.merch.salenum||0}}</span></span>
							<i class="icon icon-zuoshuangxiexian" style="color:#f2f2f2"></i>
							<span class="gray">评分 <span class="bold syscolor"><i class="icon icon-shoucang-tianchong" style="font-size:0.6rem"></i> {{pagedata.merch.star || '5.0'}}</span></span>
						</div>
					</div>
				</div>
			</div>
			<div class="fui-cell-title bold">企业其他任务</div>
			<div ng-repeat="item in pagedata.list" class="fui-cell-group" style="padding:0.5rem;border-radius:0.5rem;margin-top:0">
				<div class="fui-cell" style="background:#fff;padding:0.5rem;align-items:stretch" href="javascript:;" ng-click="access_json('jy_aihire/job_detail//id='+item.id)">
						<div class="fui-cell-text" style="line-height:1.8">
							<div>{{item.title}}</div>
							<div>
								<span class="label label-default">{{item.onlinetime.start}}~{{item.onlinetime.end}}</span>
								<span class="label label-default">{{item.baotypetitle}}</span>
							</div>
						</div>
						<div class="fui-cellone-remark noremark">
							<span class="bold syscolor" style="font-size:0.9rem">{{item.pay}}</span>
						</div>
				</div>	
			</div>
	</div>
	</div>
	<!--底部按钮-->
	<div class="fui-navbar bottom-buttons">
		<a class="nav-item external" href="javascript:"  ng-click="access_json('jy_aihire/index/')">
			<span class="icon jinyunicon icon-shouye"></span>
			<span class="label">首页</span>
		</a>
		<a class="nav-item external" href="javascript:"  onclick="$('#showsharecover').modal();">
			<span class="icon jinyunicon icon-fenxiang2"></span>
			<span class="label">分享</span>
		</a>
		<a class="nav-item btn buybtn" href="javascript:" ng-click="pagedata.tokefu()">
			<div class="fee-tag-nav">
				在线聊
			</div>
		</a>
		<a class="nav-item btn buybtn" href="javascript:" ng-click="post({},'jy_aihire/job_detail/bookjob/jobid='+pagedata.item.id)">
			<div class="fee-tagup-nav">
				申请任务
			</div>
		</a>
	</div>
</div>
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow'></div>
		<div class='content'>请点击右上角<br/>通过【发送给朋友】<br/>转发给好友哦</div>
	</div>
</div>
</div>
<script>
scope.tool.get_list('/index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('/index/getlist/');
}
</script>
<script type="text/javascript">
scope.pagedata.openLocation=function(item){
	var pcdaddress= item.province+item.city+item.district+item.street;
	var post={
		'address':pcdaddress+item.address,
		'city':item.city?item.city:''
	}
	scope.tool.get_latlng(post,function(res){
		var lat_lng = res.location
		var address_components = res.address_components
		wx.openLocation({
			latitude: lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
			longitude: lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
			name: pcdaddress, // 位置名
			address: item.address, // 地址详情说明
			scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
			infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
			success:function(){
				//alert(1111);
			},
			fail:function(res){
				scope.message('导航异常，可能是权限问题：'+res.errMsg);
			}
		});
	});
}
scope.pagedata.tokefu=function(){
	if(!scope.pagedata.pluginset.kefutype_h5 || scope.pagedata.pluginset.kefutype_h5==0){
		scope.access_json(scope.pagedata.pluginset.kflink);
	}else if(scope.pagedata.pluginset.kefutype_h5==1){
		scope.pagedata.kefuqr=scope.pagedata.pluginset.kf_accountimg;
		scope.pagedata.showqrcode=1;
		scope.pagedata.openwxlink(item.linkurl);
	}else if(scope.pagedata.pluginset.kefutype_h5==2){
		scope.access_json(scope.pagedata.pluginset.appkflink);
	}else if(scope.pagedata.pluginset.kefutype_h5==3){
		scope.access_json(scope.pagedata.pluginset.workerh5url);
	}else if(scope.pagedata.pluginset.kefutype_h5==4){
		scope.pagedata.kefuqr=scope.pagedata.pluginset.guwenkfewm;
		scope.pagedata.showqrcode=1
	}
	scope.$evalAsync();
};
</script>